<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
<head>
<title>Sistema CUCEI</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/formas.css" rel="stylesheet" type="text/css">
<logic:present name="req_msg">
	<script>
		alert("<bean:write name='req_msg'/>");
	</script>
</logic:present>
<script language="javascript" type="text/javascript" src="js/util.js"></script>
<script language="javascript" type="text/javascript">
function fnc_validarForma( forma ){
	var bol_retVal = true;
	var str_errores = "";
	if( !Trim( forma.file.value ) ){
		str_errores += " - <bean:message key="map"/> <bean:message key='errors.required'/>\n";
	}
	if( str_errores != "" ){
		bol_retVal = false;
		alert( " <bean:message key='Application.Error(s)'/> : \n" + str_errores );
	}
	return bol_retVal;
}
function fnc_closeReview(){
	if( '<bean:write name="ses_usuario" property="per_planes"/>' == '1'   ){
		var forma = document.forms[0];
		forma.file.disabled = true;
		forma.btn_aceptar.disabled = true;
	}
}
</script>
</head>
<body onload="fnc_closeReview();">
	<table cellpadding="0" cellspacing="0" class="formas">
    	<tr>
        	<td>
		   		<table cellpadding="0" cellspacing="0" class="formas">
					<tr>
						<td>
							<table cellpadding="0" cellspacing="0" class="barraNavegacion">
								<tr>
						        	<td><html:link action="/academy_welcome?action=selectAcademy" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="AcademyWelcome.Init"/></html:link>
						        		<html:link action="/academy_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.AcademyHeader"/></html:link>
						        		<html:link action="/subject_list" styleClass="barraNavegacion" name="academia" property="map_id"><img src="images/icn_liga.gif" border="0"><bean:message key="StudyPlan.subjects"/></html:link>
						        		<html:link action="/contents_list" styleClass="barraNavegacion" name="materia" property="map_id"><img src="images/icn_liga.gif" border="0"><bean:message key="StudyPlan.subjects.contents"/></html:link>
					              	</td>
				    			</tr>
						    </table>
		 					<table cellpadding="0" cellspacing="0" class="titulo">
								<tr>          
									<td class="iconos_imgs">
										<a href="#"><img src="images/icn_correo.gif" alt="Correo-e" width="18" height="18" border="0"></a>
									</td>        
									<td class="txt_titulo"> <bean:message key="map.relationship"/></td>
								</tr>
							</table>
							<html:form action="/content_conceptMapUpload" onsubmit="return fnc_validarForma(this);" enctype="multipart/form-data">
								<input type="hidden" name="subject_id" value="<bean:write name="materia" property="codigo"/>"/>
				            	<input type="hidden" name="academy_id" value="<bean:write name="academia" property="codigo"/>"/>
								<table cellpadding="0" cellspacing="2" class="info_formas">
									<tr> 
										<td colspan="3" class="formas-txtInfo"> <bean:message key="map.top.message" /> </td>
									</tr>
									<tr> 
										<td colspan="3" class="formas-encabezado"> <bean:message key="map.dataSubject"/> </td>
									</tr>
									<tr> 
										<td colspan="3" >
											<table cellpadding="0" cellspacing="2" class="info_titulo">
												<tr> 
													<td class=""><strong><bean:message key="StudyPlan.subject"/></strong></td>
													<td class=""><bean:write name="materia" property="codigo"/> - <bean:write name="materia" property="nombre"/></td>
												</tr>
												<tr> 
													<td class=""><strong><bean:message key="AcademyWelcome.Academy"/></strong></td>
													<td class=""><bean:write name="academia" property="codigo"/> - <bean:write name="academia" property="nombre"/></td>
												</tr>
											</table>
										</td>
									</tr>
	        						<tr> 
	          							<td colspan="3"> <div align="center"></div> </td>
	        						</tr>
							        <tr> 
							          	<td colspan="3" class="formas-encabezado"> <bean:message key="map"/> </td>
							        </tr>
									<tr> 
										<td colspan="3" width="15%" class="formas-backcolor1"> <html:file property="file" size="60"></html:file> </td>
									</tr>
									<tr> 
										<td colspan="3">
											<div align="center">
													<html:submit property="btn_aceptar"><bean:message key="Application.Accept" /></html:submit>
													<input type="button" onclick="location.href='contents_list.do?academy_id=<bean:write name="academia" property="codigo"/>&subject_id=<bean:write name="materia" property="codigo"/>';" value="<bean:message key='Application.Cancel'/>"/>
											</div>
										</td>
									</tr>
							        <tr> 
							          	<td colspan="3" class="">
							          		<div align="center">
							          			<logic:present name="inst_mapaConceptual">
							          				<img src="<bean:write name="inst_mapaConceptual"/>" border="0" height="450" width="550"/>
							          			</logic:present>
							          		</div>
							          	</td>
							        </tr>
								</table>
      						</html:form>
		  				</td>
        			</tr>
  				</table>
  			</td>
        </tr>
  	</table>
</body>
</html:html>
